from selenium import webdriver

if __name__ == '__main__':
    options = webdriver.FirefoxOptions()
    options.accept_insecure_certs=True
    # options.set_preference('excludeSwitches', ['enable-automation'])
    fp = webdriver.FirefoxProfile()
    fp.set_preference("security.enterprise_roots.enabled", True)
    fp.accept_untrusted_certs = True
    options.binary_location=r'C:\Program Files\Mozilla Firefox\firefox.exe'
    executable_path=r'C:\Users\Administrator\AppData\Local\Programs\Python\Python39\geckodriver.exe'
    browser = webdriver.Firefox(executable_path=executable_path,options=options,firefox_profile=fp)
    url = r'https://tysf.cponline.cnipa.gov.cn/am/#/user/login'
    browser.get(url)